package com.xiaoma.beanpostprocessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.InitializingBean;

public class MyRegistry implements BeanFactoryAware,InitializingBean {

   BeanFactory beanFactory;

  @Override
  public void afterPropertiesSet() throws Exception {
    System.out.println("MyRegistry,afterPropertiesSet..");
  }

  @Override
  public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
    this.beanFactory=beanFactory;
  }
}
